#define REGISTER_FUNC(a,b) a->RegisterFunc(#b,b)

//sm->RegisterFunc("SetScanRange",SetScanRange);
class Script
{
	lua_State *ls;

public:
	Script();
	~Script();

	int Run(const char *filename);
	int Do(const char *string);
	void RegisterFunc(const char *funcname,lua_CFunction fptr);
};